package com.magenta.mrs.geocoding;

/*
* Project: Maxoptra
* Author: Kirill Sychin
* Date: 23.10.2008 13:52:05
*
* Copyright (c) 1999-2008 Magenta Corporation Ltd. All Rights Reserved.
* Magenta Technology proprietary and confidential.
* Use is subject to license terms.
*/

public class GeocodingEngine {
    private static GeocodingEngine ourInstance = new GeocodingEngine();

    public static GeocodingEngine getInstance() {
        return ourInstance;
    }

//    public IGeocoding getGeocoding(Class clazz, GeoSettings geoSettings) {
//        try {
//            Object implementor = clazz.newInstance();
//            IGeoConfigurable config = (IGeoConfigurable) implementor;
//            config.setGeoSettings(geoSettings);
//            return (IGeocoding) implementor;
//        } catch (InstantiationException e) {
//            e.printStackTrace();
//        } catch (IllegalAccessException e) {
//            e.printStackTrace();
//        }
//        return null;
//    }

//    public IGeoRouting getGeoRouting(Class clazz, GeocodingSettings geocodingSettings) {
//        try {
//            Object implementor = clazz.newInstance();
//            IGeoConfigurable config = (IGeoConfigurable) implementor;
//            config.setGeocodingSettings(geocodingSettings);
//            return (IGeoRouting) implementor;
//        } catch (InstantiationException e) {
//            e.printStackTrace();
//        } catch (IllegalAccessException e) {
//            e.printStackTrace();
//        }
//        return null;
//    }
}
